package com.ljkj.blockpay.ui.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.GridLayoutManager;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.ljkj.blockpay.R;
import com.ljkj.blockpay.basedata.BaseDialogFragment;
import com.ljkj.blockpay.databinding.FragmentBluntcurrnetBinding;
import com.ljkj.blockpay.model.BluntCurrNetModel;
import com.ljkj.blockpay.presenter.BluntCurrNetPresenter;
import com.ljkj.blockpay.ui.adapter.BluntCurrNetAdapter;
import com.ljkj.blockpay.widget.ClickListener;
import com.ljkj.blockpay.widget.GridSpaceItemDecoration;
import com.yxing.utils.SizeUtils;

import java.util.ArrayList;
import java.util.List;

public class BluntCurrNetDialogFragment extends BaseDialogFragment<FragmentBluntcurrnetBinding,BluntCurrNetPresenter> implements ClickListener {


    private BluntCurrNetAdapter currNetAdapter;
    private List<BluntCurrNetModel> mData = new ArrayList<>();

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    protected int initContentView() {
        return R.layout.fragment_bluntcurrnet;
    }

    @Override
    protected void initView() {
        super.initView();
    }


    @Override
    protected void initData() {
        super.initData();

        GridLayoutManager layoutManager = new GridLayoutManager(mActivity, 2);
        layoutManager.setOrientation(GridLayoutManager.VERTICAL);
        binding.rvSelect.addItemDecoration(new GridSpaceItemDecoration(3, 1, true));
        currNetAdapter = new BluntCurrNetAdapter(R.layout.currnet_layout);
        binding.rvSelect.setLayoutManager(layoutManager);
        binding.rvSelect.setAdapter(currNetAdapter);
    }

    @Override
    protected BluntCurrNetPresenter createPresenter() {
        return null;
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){

        }
    }
}